#ifndef  _HARDWARE_UART_H
#define  _HARDWARE_UART_H

#include "debug.h"
#include "FreeRTOS.h"
#include "queue.h"

#define size(a)  (sizeof(a) / sizeof(*(a)))

#define UART_FILE_MESSAGE_NUM 2
typedef struct {
    uint16_t msg_len;
    uint8_t msg_buf[300];
} _uart_date_struct;




void uart_hardware_init(uint32_t baudrate);
uint8_t uart_app_protocol(uint8_t *date,uint16_t len);
void uart_app_send_protocol_result(uint8_t result);
uint16_t uart_hardware_uart4_send_date(char* date,uint16_t s_size);
QueueHandle_t* uart_hardware_file_queue_get(void);



void uart_wifi_send_packet(void);


#endif
